using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartLink.DTOS.Base
{
    public class BaseDTO
    {
        //这是一个事例
        [Display(Name = "筛选标签 (r1c12r2c23) 说明 r表示行，后面数字表示主键ID c表示列，后面数字表示主键ID")]
        [Required(ErrorMessage = "不能为空")]
        [RegularExpression(@"^(r\d+c\d+)*$", ErrorMessage = "VIN格式不正确")]
        public string VIN { get; set; }
    }

    public class IDDTO
    {
        [Required]
        public int ID { get; set; }
    }

    public class KeyValueDTO
    {
        public string KeyValue { get; set; }
    }

    public class Testdg
    {
        public int ID { get; set; }
        public string Name { get; set; }

        public IList<Testdg> TestList { get; set; }

    }
}
